package cn.com.connext.scrm.repository.master;

import cn.com.connext.scrm.domain.master.ZnhjSkuPointRelation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

@Repository
public interface ZnhjSkuPointRelationRepository extends JpaRepository<ZnhjSkuPointRelation, Serializable> {
    @Query(value = "select * FROM znhj_sku_point_relation where sku_id= :skuId",nativeQuery = true)
    ZnhjSkuPointRelation findBySkuId(@Param("skuId") String skuId);
}
